package com.javatip.project.deep_learning.app01Slidemodel.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.javatip.project.deep_learning.app01Slidemodel.mapper.App01SlidemodelMapper;
import com.javatip.project.deep_learning.app01Slidemodel.domain.App01Slidemodel;
import com.javatip.project.deep_learning.app01Slidemodel.service.IApp01SlidemodelService;
import com.javatip.common.utils.text.Convert;

/**
 * 模型训练 服务层实现
 * 
 * @author 袁伟
 * @date 2024-05-21
 */
@Service
public class App01SlidemodelServiceImpl implements IApp01SlidemodelService 
{
	@Autowired
	private App01SlidemodelMapper app01SlidemodelMapper;

	/**
     * 查询模型训练信息
     * 
     * @param id 模型训练ID
     * @return 模型训练信息
     */
    @Override
	public App01Slidemodel selectApp01SlidemodelById(Integer id)
	{
	    return app01SlidemodelMapper.selectApp01SlidemodelById(id);
	}
	
	/**
     * 查询模型训练列表
     * 
     * @param app01Slidemodel 模型训练信息
     * @return 模型训练集合
     */
	@Override
	public List<App01Slidemodel> selectApp01SlidemodelList(App01Slidemodel app01Slidemodel)
	{
	    return app01SlidemodelMapper.selectApp01SlidemodelList(app01Slidemodel);
	}
	
    /**
     * 新增模型训练
     * 
     * @param app01Slidemodel 模型训练信息
     * @return 结果
     */
	@Override
	public int insertApp01Slidemodel(App01Slidemodel app01Slidemodel)
	{
	    return app01SlidemodelMapper.insertApp01Slidemodel(app01Slidemodel);
	}
	
	/**
     * 修改模型训练
     * 
     * @param app01Slidemodel 模型训练信息
     * @return 结果
     */
	@Override
	public int updateApp01Slidemodel(App01Slidemodel app01Slidemodel)
	{
	    return app01SlidemodelMapper.updateApp01Slidemodel(app01Slidemodel);
	}

	/**
     * 删除模型训练对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteApp01SlidemodelByIds(String ids)
	{
		return app01SlidemodelMapper.deleteApp01SlidemodelByIds(Convert.toStrArray(ids));
	}

	@Override
	public List<Long> selectAllUserIds() {
		return app01SlidemodelMapper.selectAllUserIds();
	}

}
